package research.domain;

import java.sql.Blob;
import java.util.Set;

import research.entity.Entity;
import research.entity.EntityType;

public final class Photo extends Entity {
	private String name;
	private double percent_black;
	private Blob photo_real;
	private Blob photo_processing;
	private String description;
	private Sample sample;
	private Set<Point> points;

	public Photo() {
		super(EntityType.Photo);
	}

	@Override
	public String getDisplayName() {
		return this.getName();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPercent_black() {
		return percent_black;
	}

	public void setPercent_black(double percent_black) {
		this.percent_black = percent_black;
	}

	public Blob getPhoto_real() {
		return photo_real;
	}

	public void setPhoto_real(Blob photo_real) {
		this.photo_real = photo_real;
	}

	public Blob getPhoto_processing() {
		return photo_processing;
	}

	public void setPhoto_processing(Blob photo_processing) {
		this.photo_processing = photo_processing;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Sample getSample() {
		return sample;
	}

	public void setSample(Sample sample) {
		this.sample = sample;
	}

	public Set<Point> getPoints() {
		return points;
	}

	public void setPoints(Set<Point> points) {
		this.points = points;
	}

	public static Photo getNew() {
		Photo ph = new Photo();
		ph.setName("");
		ph.setDescription("");
		ph.setPercent_black(0.0);
		ph.setPhoto_real(null);
		ph.setPhoto_processing(null);
		return ph;
	}
}
